package cn.jiyun.springcloud_feign_consumer.fallback;

import cn.jiyun.User;
import cn.jiyun.springcloud_feign_consumer.feign.UserFeign;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

@Component
@RequestMapping("u")
public class UserServiceFallback implements UserFeign {

    public User getUser(Integer id) {
        return new User(1,"我是托底数据Fallback",0);
    }
}